<?php
defined('_JEXEC') or die('Restricted access');

/**
* Stop Internet Explorer 6
*
* @version 1.5
* @created 30/10/2010 20:38:11
* @createdby Pascal GAULT [ledeveloppeur.fr]
*/


$document 		=& JFactory::getDocument();
$dir_stopie6 	= JURI::base().'modules/mod_stopie6/';
$stopIE6 		= false;


$document->addStylesheet( $dir_stopie6 . 'assets/css/stopie6.css' );

$ua = strtolower($_SERVER['HTTP_USER_AGENT']);
if(strpos($ua,'msie') !== FALSE) {
	if(strpos($ua,'opera') == FALSE) {
		if(preg_match('/(?i)msie [1-6]/',$ua)) $stopIE6 = true;
	}
}
if($stopIE6)
{
	$layout 		= JModuleHelper::getLayoutPath('mod_stopie6');
	require($layout);
}





